package team.knowers.agency.service;


import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.agency.dao.entity.BookingDO;
import team.knowers.agency.dto.req.BookingCreateReqDTO;
import team.knowers.agency.dto.req.MoreBookingCreateReqDTO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface BookingService extends IService<BookingDO> {
    /**
     * 创建预订订单
     * @param req
     * @return
     */
    Integer createBooking (BookingCreateReqDTO req);
    /**
     * 取消预订
     */
    void cancelBooking(int bookingId);
    /**
     * 查看预订记录
     */
    List<BookingDO> viewBooking(int touristId);
    /**
     * 查询单个预订信息
     */
    BookingDO findBooking(int booking);
    Map<String,Integer> moreCreateBooking(MoreBookingCreateReqDTO req);
}
